package com.kczd.jinlan.adapter.normaladapter;

import android.content.Context;
import android.widget.TextView;

import com.kczd.jinlan.R;
import com.kczd.jinlan.model.Expend;

import java.util.List;

/**
 * yang_g
 * Created by Administrator on 2017/5/19.
 */

public class ExpendAdapter extends BaseCommAdapter<Expend> {
    public ExpendAdapter(List<Expend> datas) {
        super(datas);
    }

    @Override
    protected void setUI(ViewHolder holder, int position, Context context) {
        Expend expend = getItem(position);

        TextView text_list_title = holder.getItemView(R.id.text_list_title);
        text_list_title.setText(expend.mtitle_ex);

        TextView text_list_time = holder.getItemView(R.id.text_list_time);
        text_list_time.setText(expend.mtitle_ex);

        TextView text_list_price = holder.getItemView(R.id.text_list_price);
        text_list_price.setText(expend.mprice_ex);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.item_list_expend;
    }
}
